<?php
/**
 * Created by PhpStorm.
 * User: dream
 * Date: 2017/10/1
 * Time: 20:50
 */
//图片验证码类
require_once __DIR__.'/Verify/Verify.php';
class ImageVerify
{
    //生成验证码图片
    public static function  printImageCode($img_id='img')
    {
        $verify = new Verify();
        $verify->entry($img_id);
    }

    //校验验证码是否正确
    public static function checkImageCode($code,$img_id='img')
    {
        $verify = new Verify();
        return $verify->check($code,$img_id);
    }
}